<?php

	/*** include base controller ***/
	include _ROOT . '/Application/' . 'BaseController.php';

	/*** include the registry ***/
	include _ROOT . '/Application/' . 'Registry.php';

	/*** include the router ***/
	include _ROOT . '/Application/' . 'Router.php';

	/*** include the template ***/
	include _ROOT . '/Application/Template.php';

	/*** auto load model classes ***/
	// !change this to a mapper class, one that generates models instead of loading hardcoded ones
	/*function __autoload($className){
		$fileName = strtolower($className) . '.model.php';	
	
		$file = _ROOT . '/model/' . $fileName;

		if(file_exists($file) == false){
			return false;
		}	
	
		include ($file);
	}*/

	$registry = new Registry();

	/*** database registry object ***/
	//$registry->db = Database::getInstance();
